package fm.admin.controller;

import fm.cache.AreaCache;
import fm.controller.BaseController;
import fm.yichenet.service.SectionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by 61741 on 2018/1/28.
 */
@Controller
@RequestMapping("app/info/config")
public class AppInfoSetController extends BaseController {

    @Autowired
    SectionService sectionService;

    @RequestMapping("/index")
    public String index(ModelMap modelMap) {
        modelMap.put("citys", AreaCache.getAllProvince());
        modelMap.put("sections", sectionService.getAllSection(1));

        return "/admin/appConfig/appInfoSet";
    }

}
